import ABI from '@/electronABI';
import store from '@/store';
import { createAbstractBuilder } from 'typescript';
class windows {
  sendWindowsClose() {
    ABI.send('win-close');
  }
  snedWindowsMinMax() {
    ABI.send('win-minmax');
  }
  sendWindowsMaxMin() {
    ABI.send('win-maxmin');
  }
  snedWindowsMin() {
    ABI.send('win-min');
  }
  constructor() {
    ABI.on('maxmin', (_, value: boolean) => {
      store.test.toogleHide(value);
    });
  }
}
const Windows = new windows();

export default Windows;
